<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
    <div class="layui-form timo-compile">
    <form th:action="@{/product/product/save}">
        <input type="hidden" name="id" th:if="${product}" th:value="${product.id}">
        <div class="layui-form-item">
            <label class="layui-form-label">产品名字</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="product_Name" placeholder="请输入产品名字" th:value="${product?.product_Name}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">价格</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="price" placeholder="请输入价格" th:value="${product?.price}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">描述</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="comments" placeholder="请输入描述" th:value="${product?.comments}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">产品状态</label>
               <div class="layui-input-inline">
            	<div class="timo-search-status" style="width:110px;padding-right: 0px;">
                   <select  style="width:110px;padding-right: 0px;" name="on_Sale" mo:dict="USER_PRO_STATUS_NEW" mo-selected="on_Sale"></select>
               	</div>
            </div>
        </div>
        <div class="layui-form-item timo-finally">
            <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
            <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
        </div>
    </form>
</div>
<script th:replace="/common/template :: script"></script>
</body>
</html>